﻿using DesignPatterns.Decorator;
using DesignPatterns.Proxy;
using DesignPatterns.SimpleFactory;
using DesignPatterns.Strategy;
using DesignPatterns.TemplateMethod;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DesignPatterns
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();

            btnSimpleFactory.Click += (ss, ee) => new FrmSimpleFactory().Show();
            btnStrategy.Click += (ss, ee) => new FrmStrategy().Show();
            btnDecorator.Click += (ss, ee) => new FrmDecorator().Show();
            btnProxy.Click += (ss, ee) => new FrmProxy().Show();
            btnFactoryMethod.Click += (ss, ee) => new FrmFactoryMethod().Show();
            btnPrototype.Click += (ss, ee) => new FrmPrototype().Show();
            btnTemplateMethod.Click += (ss, ee) => new FrmTemplateMethod().Show();
        }
    }
}
